<!--html-->
<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="name" label="姓名" width="180" align="center"> </el-table-column>
    <el-table-column prop="age" label="年龄" width="180" align="center"> </el-table-column>
    <el-table-column prop="weight" label="体重" align="center" > </el-table-column>
    <el-table-column prop="bj" label="班级" align="center"> </el-table-column>
  </el-table>
</template>

<!--js-->
<script>
export default {
  data() {
    return {
      tableData: [
        {
          name: "张三",
          age: 20,
          weight: 150.2,
          bj:"二班"
        },
          {
          name: "黎明",
          age: 60,
          weight: 120.2,
          bj:"一班"
        },
      ],
    };
  },
};
</script>

<!--css-->
<style scoped>
</style>
